// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class PowerFuelRate : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<PowerFuelRate, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public decimal? FuelRate { get; set; }
        public decimal? PowerLevel { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
    
        public void Configure(EntityTypeBuilder<PowerFuelRate> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(100);

                entityBuilder.Property(e => e.FuelRate).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.PowerLevel).HasColumnType("decimal(18, 1)");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);
        }

    }
}

